home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- **
- ** Folder Name: BS
- ** File Name: Utilities.h
- **
- ** Copyright: © 1993 by Siren Enterprises, all rights reserved.
- **
- ** Description: Support routines for BeepSay
- **
- *******************************************************************************
- ** A U T H O R I D E N T I T Y
- *******************************************************************************
- **
- ** Initials Name
- ** -------- -----------------------------------------------
- ** kw Ken Wieschhoff
- **
- *******************************************************************************
- ** R E V I S I O N H I S T O R Y
- *******************************************************************************
- **
- ** Date Time Author Description
- ** -------- ----- ------ ---------------------------------------------
- ** 05/17/93 21:03 kw Original version
- **
- ******************************************************************************/
- #ifndef __Preferences__
- #define __Preferences__
-
- #include "Resident.h"
-
- //•• Prototypes
- pascal OSErr xFSpCreateResFile(const FSSpec *spec,OSType creator,OSType fileType,
- ScriptCode scriptTag);
- pascal OSErr xFSpOpenDF(const FSSpec *spec,char permission,short *refNum);
- pascal OSErr xFSpCreate(const FSSpec *spec,OSType creator,OSType fileType,
- ScriptCode scriptTag);
- pascal OSErr xFSpDelete(const FSSpec *spec);
-
- pascal OSErr _ReadPreferences(PreferencesHdl *PreferencesHandle, Str31 filename);
-
- pascal OSErr WriteToPrefs(PreferencesHdl prefHdl, Str31 filename);
-
- OSErr findPreferencesFolder(short *vRefNum, long *prefDirID);
- OSErr sys6Create(const FSSpec *spec,OSType creator,OSType fileType);
- static void specToHParamBlock(const FSSpec *spec, HParmBlkPtr hpb);
- static void zeroMemory(Ptr d,long len);
-
- #endif